<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>tr li option作为组件的写法----组件细节点</title>
</head>

<body>
    <div id="root">
        <table>
            <tr is="row"></tr>
            <tr is="row"></tr>
            <tr is="row"></tr>
        </table>
        <ul>
            <li is="list"></li>
            <li is="list"></li>
            <li is="list"></li>
            <li is="list"></li>
        </ul>
        <select name="" id="">
            <option is="optionDom"></option>
            <option is="optionDom"></option>
            <option is="optionDom"></option>
        </select>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        Vue.component('row', {
            template: '<tr><td>This is a row</td></tr>'
        })

        Vue.component('list', {
            template: '<li>This is a li</li>'
        })

        Vue.component('optionDom',{
            template:'<option value="我是option">我是option</option>'
        })

        var vm = new Vue({
            el: "#root",
        })
    </script>
</body>

</html>